package com.etoak.car.mapper;

import com.etoak.car.bean.Comment;
import com.etoak.car.bean.vo.CommentReq;
import com.etoak.car.bean.vo.CommentResp;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper {
    int userCommentAdd(Comment comment);

    Comment isFirst(@Param("userid") int userid,@Param("carid") int carid);

    List<CommentResp> getAllComment();

    int huiComment(CommentReq comment);

    int delComment(int id);

    List<CommentResp> querySomeComment(int id);
}
